Added rudementary page content
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@@ -112,7 +112,7 @@ fastify.get('/:shortcode', async (req, res) => {
 | 
			
		||||
        return 404
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if(isBot(req.headers['user-agent']) && target[0].no_preview){
 | 
			
		||||
    if (isBot(req.headers['user-agent']) && target[0].no_preview) {
 | 
			
		||||
        return `
 | 
			
		||||
        <!DOCTYPE html>
 | 
			
		||||
        <html lang="en">
 | 
			
		||||
@@ -123,15 +123,20 @@ fastify.get('/:shortcode', async (req, res) => {
 | 
			
		||||
            <meta property="og:title" content="LinkyLinky">
 | 
			
		||||
            <meta property="og:site_name" content="LinkyLinky by Kauft.es">
 | 
			
		||||
            <meta property="og:url" content="https://kauft.es/">
 | 
			
		||||
            <meta property="og:description" content="LinkyLinky by Kauft.es is a custom url shortener.
 | 
			
		||||
        You're reading this, b/c someone doesn't want their shorturl to be indexed by bots/crawlers/spiders.
 | 
			
		||||
        T">
 | 
			
		||||
            <meta property="og:description" content="LinkyLinky by Kauft.es is a custom url shortener. You're reading this, b/c someone doesn't want their shorturl to be indexed by bots/crawlers/spiders.">
 | 
			
		||||
            <meta property="og:type" content="article">
 | 
			
		||||
            <meta property="og:image" content="https://kauft.es/dashboard/icon_128.png">
 | 
			
		||||
 | 
			
		||||
            <title>LinkyLinky</title>
 | 
			
		||||
        </head>
 | 
			
		||||
        <body>
 | 
			
		||||
        <p align="center">
 | 
			
		||||
        <img height="150" src="https://kauft.es/dashboard/icon_128.png">
 | 
			
		||||
        <h1 align="center">LinkyLinky 🔗</h1>
 | 
			
		||||
        <h3 align="center">A small url shortener, originaly developed for kauft.es</h3>
 | 
			
		||||
        <p>LinkyLinky by Kauft.es is a custom url shortener.<br>
 | 
			
		||||
        You're reading this, b/c someone doesn't want their shorturl to be indexed by bots/crawlers/spiders.</p>
 | 
			
		||||
        </p>        
 | 
			
		||||
        </body>
 | 
			
		||||
        </html>
 | 
			
		||||
        `;
 | 
			
		||||
@@ -317,7 +322,7 @@ fastify.after(() => {
 | 
			
		||||
 | 
			
		||||
    //Get all visits api route
 | 
			
		||||
    fastify.get('/api/visits', { onRequest: fastify.auth([fastify.basicAuth, fastify.verifyJWT]) }, async (req, res) => {
 | 
			
		||||
        if(req.query.provider){
 | 
			
		||||
        if (req.query.provider) {
 | 
			
		||||
            return await knex.select('shortcode', 'provider', 'timestamp')
 | 
			
		||||
                .from('visits')
 | 
			
		||||
                .where("provider", "=", req.query.provider);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user