convert wetty from submodule to normal directory
This commit is contained in:
5
wetty/src/server/socketServer/assets.ts
Normal file
5
wetty/src/server/socketServer/assets.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import serve from 'serve-static';
|
||||
import { assetsPath } from './shared/path.js';
|
||||
|
||||
export const trim = (str: string): string => str.replace(/\/*$/, '');
|
||||
export const serveStatic = (path: string) => serve(assetsPath(path));
|
||||
Reference in New Issue
Block a user