<commit_before>// *** routes *** //
import * as routes from "../routes/index";
import * as authRoutes from "../routes/auth";
import * as userRoutes from "../routes/user";
import * as path from "path";

export function route_config_init(app) {
  // *** register routes *** //
  app.get('', (req, res) => {
    res.sendFile(path.join(process.env.DIST_PATH, 'dist/main.html'));
  });
  app.use('/api', routes);
  app.use('/api/auth', authRoutes);
  app.use('/api', userRoutes);
}



<commit_msg>change import from 'index', 'auth','user'<commit_after>// *** routes *** //z
import {IndexRouter} from "../routes/index";
import {AuthRouter} from "../routes/auth";
import {UserRouter} from "../routes/user";
import * as path from "path";

export function route_config_init(app) {
  // *** register routes *** //
  app.get('', (req, res) => {
    res.sendFile(path.join(process.env.DIST_PATH, 'dist/main.html'));
  });

  app.use('/api', IndexRouter);
  app.use('/api/auth', AuthRouter);
  app.use('/api', UserRouter);
}




{'fraction_non_alphanumeric': 0.22364532019704433, 'fraction_numerical': 0.0, 'mean_word_length': 3.7037037037037037, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7200728', 'n_tokens_mistral': 343, 'n_tokens_neox': 338, 'n_words': 78}