mirror of
				https://gitlab.com/MrFry/mrfrys-node-server
				synced 2025-04-01 20:24:18 +02:00 
			
		
		
		
	Seperate dbs
This commit is contained in:
		@@ -74,7 +74,7 @@ function GetApp(): ModuleType {
 | 
			
		||||
  // app, '/*.mp4', 'video/mp4', 'stuff/video'
 | 
			
		||||
  function appGetFileType(app, wildcard, contentType, pageToRender) {
 | 
			
		||||
    app.get(wildcard, function(req, res) {
 | 
			
		||||
      const path = decodeURI(req.url)
 | 
			
		||||
      const path = decodeURIComponent(req.url)
 | 
			
		||||
      let fp: any = path
 | 
			
		||||
      if (path.includes('?')) {
 | 
			
		||||
        fp = path.split('?')
 | 
			
		||||
@@ -151,7 +151,7 @@ function GetApp(): ModuleType {
 | 
			
		||||
  })
 | 
			
		||||
 | 
			
		||||
  app.get('/*', function(req, res) {
 | 
			
		||||
    const parsedUrl = decodeURI(req.url)
 | 
			
		||||
    const parsedUrl = decodeURIComponent(req.url)
 | 
			
		||||
    let curr =
 | 
			
		||||
      listedFiles +
 | 
			
		||||
      '/' +
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user