Skip to content

nickbass72/yoummday-refactoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yoummday Refactoring Task

This project only includes the route GET /has_permission/{token} which has to decide if the provided token exists and has the required permission. Your task is to refactor the endpoint and create tests, if necessary.

Requirements

  • php 8.1
  • composer

Installation

$ composer install

Run

$ php src/main.php

Expected output:

[INFO] Registering GET /has_permission/{token}
[INFO] Server running on 127.0.0.1:1337

Testing

$ php vendor/bin/phpunit Test

About

Refactoring task for code interviews

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages